import request from '../utils/request';

export function fetchRequestAll(req) {     
    var data = new FormData()
    data.append('HomeRequest', JSON.stringify(req))
    return request(`/api/restricted/HomePage/All`, {
        method: 'POST',
        body: data
    });
}

export function fetchRequest2(req) {
    var data = new FormData()
    data.append('HomeRequest', JSON.stringify(req))
    return request(`/api/restricted/HomePage/2`, {
        method: 'POST',
        body: data
    });
}
export function fetchCardData(req) {
    var data = new FormData()
    data.append('HomeRequest', JSON.stringify(req))
    return request(`/api/restricted/HomePage/fetchCardData`, {
        method: 'POST',
        body: data
    });
}   
export function fetchChartData(req) {
    var data = new FormData()
    data.append('HomeRequest', JSON.stringify(req))
    return request(`/api/restricted/HomePage/fetchChartData`, {
        method: 'POST',
        body: data
    });
}